<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% 
        if (!Model.ThreadReference.IsLoaded) Model.ThreadReference.Load();
        if (!Model.ForumReference.IsLoaded) Model.ForumReference.Load();
    %>
    <div style="margin-bottom: 5px; height: 30px;">
        <%:Ajax.ForumMapPath(Model.Forum.ID) %>
    </div>
    <div class="ui-corner-top ui-widget-content" style="margin:5px;">
        <div class="ui-widget-header ui-corner-top ui-border-bottom" style="padding: 10px;">
            <h3>
                <%:Html.ActionLink(Html.Global("forums","Quote")+"\""+Model.Title+"\"", "Index", "Thread", new { Area="Community",id=Model.Thread.ID},null)%>
            </h3>
        </div>
        <div class="ui-widget-content ui-state-highlight ui-corner-all" style="margin: 10px;
            padding: 10px;">
            <b>
                <%=Model.UserName%>
                worte:</b>
            <blockquote>
                <div style="padding: 5px; margin-top: 5px;">
                    <%=Html.FormatXhtml(Html.FormatBBCode(Model.Body).ToString()) %>
                </div>
            </blockquote>
        </div>
        <%
            var _vData = new ViewDataDictionary();
            _vData["Forum"] = Model.Forum;
            _vData["TitlePrefix"] = "Quote:" + Model.Title;
            _vData["Quote"] ="<blockquote><div style=\"padding: 5px; margin-top: 5px;\">"+ Model.Body+"</div></blockquote>";
            Html.RenderPartial("PostForm", _vData); 
            %>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<%:Html.ScriptRefs(new string[] { "jquery.validate.min.js", "MicrosoftMvcJQueryValidation.js" })%>
</asp:Content>
